package cn.rxyb.desgin.chainofreponsibilit;

/**
 * @author YJH
 * @version 1.0
 * @description
 * @date 2020/7/6 13:39
 */
public class ConcreteHandler2 extends Handler {
    @Override
    public void HandleRequest(String request) {
        if (request.trim().equals("two")) {
            System.out.println("具体处理者2负责处理该请求");
        } else {
            if (null != getNext()) {
                getNext().HandleRequest(request);
            } else {
                System.out.println("没有人处理该请求！");
            }
        }
    }
}
